<?php
// 1 计算出自己出生那天是周几
// 2  计算出 2018-6-1  跟  2017-9-03   相差多少天
// 3 for 与while 循环100万次 的效率，看哪个快

$time = strtotime('1986-12-25');
$arr = getdate($time);
var_dump(date("l",$time));
var_dump($arr);

// echo (strtotime('2018-6-1')-strtotime('2017-9-03'))/86400;

$time = microtime(true);
$k = 0;
for ($i=0; $i <1000000 ; $i++) { 
	$k = $k+$k+$k;
}
$diff = microtime(true)-$time;

echo $diff;

echo "<br>";

$time = microtime(true);
$k = 0;
$i = 0;
while ($i < 1000000) {
	$k = $k+$k+$k;
	$i++;
}
$diff2 = microtime(true)-$time;

echo $diff2;


include '../functions.php';

var_dump(Fsize(4545454513212565));

var_dump(Ftime(time()-2000000));

var_dump(getRandNum(3));